package org.example.route.event;

import org.example.route.event.source.OrderCancelSource;
import org.springframework.context.ApplicationEvent;

public class OrderCancelEvent extends ApplicationEvent {


    private OrderCancelSource orderCancelSource;

    public OrderCancelEvent(Object source) {
        super(source);
    }

    public OrderCancelEvent(Object source, OrderCancelSource orderCancelSource) {
        super(source);
        this.orderCancelSource = orderCancelSource;
    }

    public OrderCancelSource getOrderCancelSource() {
        return orderCancelSource;
    }
}
